export interface User {
    id: string;
    username: string;
    password: string;
    nickname: string;
    avatar?: string;
    roleCode: string;
    permissions: string[];
    orgName: string;
    orgId: string;
}

export interface UserInfo extends Omit<User, 'password'> {
    token: string;
}

export interface SessionData {
    user?: UserInfo;
    captcha?: string;
}

export interface ApiResponse<T = any> {
    success: boolean;
    message: string;
    data?: T;
    error?: string;
} 